﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" class="loading">
<head>
		 <?php
		 		session_start();
				
				require_once("../connectMysql/connetMysql.class.php");
					
				$projectid=$_GET['projectid']; 
				$pro_status = array(1=>'有个好想法',2=>'寻找小伙伴',3=>'产品研发中',4=>'产品运营中'); 
				$pro_type = array(1=>'社交',2=>'工具',3=>'游戏',4=>'教育',5=>'媒体',6=>'旅游',7=>'金融',8=>'硬件',9=>'体育',10=>'O2O',11=>'新农业',12=>'电子商务',13=>'移动应用',14=>'企业服务',15=>'文化艺术',16=>'营销广告',17=>'视频娱乐',18=>'健康医疗',19=>'搜索安全',20=>'创业服务',21=>'站长工具',22=>'企业服务',23=>'酒店服务',24=>'其他应用');	
				$db=new connetMysql;
				$con=$db->getConnect();
				$show_pro="SELECT Userid,ProName,ProStart,ProProv,ProCity,ProDescri,ProContent,ProType,ProStatus,ProLimitNum,ProNeedRec FROM project WHERE ProjectId=".$projectid; 
				$result=mysqli_query($con,$show_pro);
				$row = mysqli_fetch_assoc($result);
		?>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
	<meta name="viewport" content="width=device-width, initial-scale=0.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0" />
	<meta name="keywords" content="新创社" />
	<meta name="description" content="新创社会创新">
	<meta name="author" content="新创社" />
	<meta content="yes" name="apple-mobile-web-app-capable">
	<meta content="black" name="apple-mobile-web-app-status-bar-style">
	<meta content="telephone=no" name="format-detection">
	<title><?php echo $row['ProName'];?></title>
	<link rel="stylesheet" type="text/css" href="../css/indexstyle.css" />
    <link rel="stylesheet" type="text/css" href="css/proshow.css" />
	<link rel="apple-touch-icon-precomposed" href="../img/default/defaultshare.jpg">
	<link href="../img/icons/favicon.ico" rel="shortcut icon" type="image/x-icon">
</head>
<body>
		
		<div class="head">
			<!-- Header -->
			<div id="header">
				<a id="menu" href="#menu"></a>
				<span id="Logo" class="svg">
					<img src="../img/icons/logo.png" />
				</span>
                <?php 
							if(empty($_SESSION['mb']))  
								echo "<a class=\"backBtn\" onclick=\"javascript:history.go(-1);\">返回</a>";
							else
							{
								
							$chkmb_sql="SELECT ProjectId FROM project WHERE userid=(SELECT UserId FROM user WHERE UserPhone=".$_SESSION['mb'].")"; 
								mysqli_query($con,$chkmb_sql);
								$num=mysqli_affected_rows($con);
								if($num==0)
								{
									echo "<a class=\"backBtn\" onclick=\"javascript:history.go(-1);\">返回</a>";
								}
								else
								{
									echo "<a class=\"backBtn\" href=\"projectre.php?projectid=".$projectid."\">编辑</a>";
								}
							}

				?>
				
			</div>
            <!--End Header-->
			<div class="subHeader"><i class="i-home i-small"></i>
            <?php 									
              	echo $row['ProProv']."/".$row['ProCity']."/".$pro_type[$row['ProType']]."/". $pro_status[$row['ProStatus']];						
            ?>
            </div>
			
		</div>
        <div class="main"  id="wrapper">  
             <a class="profile menuitem" role="menuitem">
               
                <div>
                    <div class="avatar">
  						 <span class="u-img"><span class="u-text"><?php echo mb_substr($row['ProName'], 0, 1, 'utf-8'); ?></span></span>
                    </div>
                    <em class="name"><?php echo $row['ProName'];?> 
                    		  
                    </em>
                    <span class="rank"><?php 
											echo $row['ProDescri'];
											  
										?>
                    </span>
                </div>
                
            </a> 
            
            <div class="account-menu menu" role="menu">
                <a href="../me/me.php?userid=<?php echo $row['Userid'];?>"role="menuitem" class="menuitem" >
                 	<em class="comment">发起人</em>
                    <i >发起人			
                    </i>
                </a>
                
                <a role="menuitem" class="menuitem" >
                	<em class="fav">启动时间</em>
                    <i>
                    	<?php if(empty($row['ProStart']))
									echo "未填写";
								else
									echo date("Y-m-d",strtotime($row["ProStart"]));
						 ?>
                    </i>
                </a>
              
               
                <a role="menuitem" class="menuitem">
                   
                    <em class="tuan">项目人数</em>
                    <i>
                    	<?php if(empty($row['ProLimitNum']))
									echo "未填写";
								else
									echo $row['ProLimitNum'];
						 ?>
                    </i>
                </a>
                <a role="menuitem" class="menuitem">
                  
                    <em class="weidian">需求资源</em>  
                    <i>
                    	<?php if(empty($row['ProNeedRec']))
									echo "未填写";
								else
									echo $row['ProNeedRec'];
						 ?>
                    </i>
                </a>
               
                 <a role="menuitem" class="menuitem">
                    <h4 class="ask">项目介绍</h4>
                    <i>
                    <br />
                    	<?php if(empty($row['ProContent']))
									echo "未填写";
								else
									echo str_replace("\r\n",'<br/>',$row["ProContent"]);
									
						 ?>
                    </i>
                </a>
            </div>
     
        </div>

		<div class="foot">
    		<!-- Footer -->
            <section class="footer">
                <ul>
                    <li><a href="../people/person.php"><img src="../img/icons/blog.png" width="18" height="26" alt="icon"><span>人</span></a></li>
                    <li><a href="../index.php"><img src="../img/icons/contact.png" width="27" height="26" alt="icon"/><span>约</span></a></li>
                   
                   	<li><a href="../me/me.php"><img src="../img/icons/about.png" width="25" height="26" alt="icon"/><span>我</span></a></li>
                 
                </ul>
            </section>

			<!--End Footer -->
    	</div>

</body>

</html>